.user-management-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.user-management-header h1 {
    color: #2c3e50;
    font-size: 2em;
    margin: 0;
    text-align: center;
}

.add-user-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.add-user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.add-user-btn i {
    font-size: 1.2em;
}

.user-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 1200px;
}

.user-list-header {
    display: flex;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #2c3e50;
}

.header-item {
    flex: 1;
    text-align: left;
}

.header-item:nth-child(3) {
    flex: 2;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.user-item:hover {
    background-color: #f8f9fa;
}

.user-info {
    flex: 1;
}

.user-role {
    flex: 1;
}

.user-actions {
    flex: 1;
    text-align: right;
}

.user-info .username {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1em;
}

.role-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: capitalize;
}

.role-badge.admin {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.role-badge.user {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.delete-btn {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: translateY(-2px);
}

.delete-btn i {
    font-size: 1.1em;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.4em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    font-size: 1.1em;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.close-btn:hover {
    transform: rotate(90deg);
    opacity: 1;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95em;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
}

.cancel-btn, .confirm-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.confirm-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.cancel-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px;
    }

    .form-control {
        padding: 10px 12px;
    }

    .cancel-btn, .confirm-btn {
        padding: 8px 16px;
        font-size: 0.95em;
    }
}

.user-records {
    flex: 2;
    padding: 10px 20px;
}

.record-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #2c3e50;
    padding: 8px;
    border-radius: 8px;
    background: #f8f9fa;
}

.record-time {
    margin-right: 15px;
    color: #6c757d;
    font-size: 0.9em;
}

.record-gesture {
    margin-right: 15px;
    color: #3498db;
    font-weight: 500;
}

.record-content {
    color: #2c3e50;
}

.no-records {
    color: #6c757d;
    font-style: italic;
    padding: 10px;
} 